function clickLogBtn(){
    const login=document.querySelector('.login')
    const name=$(".name").val()
    const password=$(".password").val()
    if(name=="dcx"&&password=="123")
    {
        login.animate(
        [{
            opacity:'0.7'
        },
            {
                opacity:'0'
            }
        ], {
            duration: 1100
        }
    )
    setTimeout(()=>{
        location.href="bookList.html"
    },1000)
    }
    else
    {
        alert("用户名或密码错误")
    }

}
const btn=document.querySelector(".loginBtn")
btn.addEventListener('click',clickLogBtn)
